package dq.study.designmodel.factory.abstractFactory;

import dq.study.designmodel.factory.model.food.Apple;
import dq.study.designmodel.factory.model.food.Food;
import dq.study.designmodel.factory.model.vehicle.Car;
import dq.study.designmodel.factory.model.vehicle.Vehicle;

/**
 * @author dongqun
 * @Description: 御姐系工厂在汽车里啃苹果
 * @date 2019/3/20 22:57
 */
public class RoyalFactory extends AbstractFactory {

    @Override
    public Food createFood() {
        return new Apple();
    }

    @Override
    public Vehicle createVehicle() {
        return new Car();
    }
}
